package org.dreamland.common

import org.dreamland.common.EnumValue

enum class Gender: EnumValue<Int> {

    MALE {
        override fun getValue(): Int {
            return 0
        }

        override fun ofValue(value: Int?): Boolean {
            return value == 0
        }


    },

    FEMAL {
        override fun getValue(): Int {
            return 1
        }

        override fun ofValue(value: Int?): Boolean {
            return value == 1
        }


    }
}